package com.demo.dao.impl;

import com.demo.dao.UserDao;

/**
 * 工厂类
 * @author Administrator
 *
 */
public class UserDaoFactory {
	//静态工厂方法创建实例
		public static UserDao getUserDaoInstance(){
			System.out.println("静态工厂方法");
			return new UserDaoImpl();
		}
		
		//实例工厂创建对象
		public UserDao createInstance(){
			System.out.println("实例工厂构造对象");
			return new UserDaoImpl();
		}
		
}
